package cn.fancy.sdk.login.utils;

import android.content.Context;
import android.widget.Button;
import cn.fancy.sdk.common.utils.ResUtil;
import cn.fancy.sdk.common.utils.ResourceUtil;


public class ButtonUtil 
{

	public static void setButtonStateDownload(Context cxt,Button btn)
	{
		btn.setText(ResourceUtil.getStringFromRes(cxt, ResUtil.getStringId(cxt,"guild_start_download")));
		btn.setBackgroundDrawable(cxt.getResources().getDrawable(ResUtil.getDrawableId(cxt,"guild_login_bt_s")));
		btn.setPadding(0,0,0,0);
	}
	
	
	public static void setButtonStateInstall(Context cxt,Button btn)
	{
		btn.setText(ResourceUtil.getStringFromRes(cxt, ResUtil.getStringId(cxt,"guild_start_install")));
		btn.setBackgroundResource(ResUtil.getDrawableId(cxt,"guild_install_btn_s"));
		btn.setPadding(0,0,0,0);
	}
	
	
	public static void setButtonStateStart(Context cxt,Button btn)
	{
		btn.setText(ResourceUtil.getStringFromRes(cxt, ResUtil.getStringId(cxt,"guild_start_game")));
		btn.setBackgroundResource(ResUtil.getDrawableId(cxt,"guild_reg_btn_s"));
		btn.setPadding(0,0,0,0);
	}
	

}
